const state = {
  // 用户信息
  userInfo: {}
}

const mutations = {
  SET_USER_INFO: (state, data) => {
    state.userInfo = data
  }
}

const actions = {
  setUserInfo ({ commit }, data) {
    commit('SET_USER_INFO', data)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
